<!-- 侧边菜单 -->
<div class="layui-side layui-side-menu">
    <div class="layui-side-scroll">
        <div class="layui-logo" lay-href="home/console.html" >
          <img src="/static/images/logo.png" />
        </div>
        <ul class="layui-nav layui-nav-tree" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu" lay-shrink="all">
            
            {foreach $menus as $group}
            <li class="layui-nav-item" data-name="group_{$group.ac_id}">
                <a lay-direction="2" lay-tips="{$group.ac_name}">
                    <i class="layui-icon layui-icon-component">
                    </i>
                    <cite>
                        {$group.ac_name}
                    </cite>
                </a>
                <dl class="layui-nav-child">
                    {foreach $group._child as $item}
                    <dd data-name="menu_{$item.ac_id}">
                        {notempty name="item._child"}
                        <a>
                            <i class="layui-icon layui-icon-triangle-r"></i> {$item.ac_name}
                        </a>
                        <dl class="layui-nav-child">
                            {foreach $item._child as $v}
                            <dd data-name="menu_{$v.ac_id}">

                                <a lay-href="{$v.ac_url}">
                                    <i class="layui-icon layui-icon-file"></i> {$v.ac_name}
                                </a>
                            </dd>
                            {/foreach}
                        </dl>
                        {else /}
                        <a lay-href="{$item.ac_url}">
                            <i class="layui-icon layui-icon-file"></i> {$item.ac_name}
                        </a>
                        {/notempty}
                    </dd>
                    {/foreach}
                </dl>
            </li>
            {/foreach}
        </ul>
    </div>
</div>